package top.soulblack.purchasesale.common.enums;

import lombok.Getter;

/**
 * @Author: 韦溜溜
 * @Description:用户权限
 * @Date: Create in 18:19 2019/5/23
 */
@Getter
public enum UserRoleEnum {
    REGISTRANT(1,"注册人"),
    ADMINISTRATORS(2,"管理员"),
    BUYER(3,"采购员"),
    SALESPERSON(4,"售货员"),
    STORE_MAN(5,"仓库管理员"),
    STAFF(6,"普通员工"),
    CUSTOMER(6,"客户")
    ;

    private Integer code;

    private String name;

    UserRoleEnum(Integer code , String name){
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return this.code;
    }
}
